projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8540bea
)
reftests: Plug a few memory leaks
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 27 Mar 2021 20:23:17 +0000
(16:23 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 27 Mar 2021 20:25:28 +0000
(16:25 -0400)
Noticed in passing.
testsuite/reftests/gtk-reftest.c
patch
|
blob
|
history
diff --git
a/testsuite/reftests/gtk-reftest.c
b/testsuite/reftests/gtk-reftest.c
index 7e2be7ee1d9be40a9e1252260bb9f8bdc340ad4f..38a2817ddf66f34d3e586d27b220cb58de92b29a 100644
(file)
--- a/
testsuite/reftests/gtk-reftest.c
+++ b/
testsuite/reftests/gtk-reftest.c
@@
-322,12
+322,16
@@
test_ui_file (GFile *file)
if (diff_image)
{
save_image (diff_image, ui_file, ".diff.png");
+ cairo_surface_destroy (diff_image);
g_test_fail ();
}
remove_extra_css (provider);
g_free (ui_file);
+
+ cairo_surface_destroy (ui_image);
+ cairo_surface_destroy (reference_image);
}
static int